package com.gjy.cloud.mapper;

import com.gjy.cloud.entities.Payment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 宫静雨
 * @version 1.0
 */
public interface PaymentMapper {

    @Insert("INSERT INTO payment VALUES(#{id},#{serial})")
    int create(Payment payment);

    @Select("SELECT id,serial FROM payment WHERE id = #{id}")
    Payment getPaymentById(@Param("id") Long id);
}